package cn.edu.ctbu.finaltest.service.StudentService;

import cn.edu.ctbu.finaltest.domain.Student;
import cn.edu.ctbu.finaltest.vo.R;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface StudentService {

    List<Student> findAll();
    R<List<Student>> findRAll();
    public R<List<Student>> findByRName(String name);
    public R<List<Student>> findByRNameLike(String name);
    public R<Student> findByRSno(String sno);
    public R<List<Student>> findByRSnoLike(String sno);
    Student findBySno(String Sno);
    public R<List<Student>> findByRSex(String sex);
    public R<List<Student>> findByRSexLike(String sex);
    public R<List<Student>> findByRDept(String dept);
    public R<List<Student>> findByRDeptLike(String dept);
    Student insert(Student student);
    Student update(Student student);
    void deleteId(Integer id);
    Student findBySnoAndPassword(String Sno,String password);

}
